Skip to content

docs: say what the cancel and edit scope questions ask - #240

Merged
mwg-bender[bot] merged 1 commit into
devfrom
docs/060-scope-wording
Nov 26, 2026
Merged

mwg-bender[bot] merged 1 commit into
devfrom
docs/060-scope-wording

Conversation

@mwg-bender

@mwg-bender mwg-bender Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

The Occurrence entry in GLOSSARY.md said an edit or cancel asks for its scope "this occurrence, this and following, or all". That is wrong for cancel (two scopes) and imprecise for edit (three, and only when the change can reach the Series). The entry now says what the Web asks, using the option names the dialogs show. Docs only: no code, no tests.

Change

  • GLOSSARY.md, Occurrence: deleting one asks This event only or This and all future events. Saving a change asks This event only, This and following events or All future events. The two series scopes are offered only when nothing but the name, the time of day or Unique games only changed, and they refuse a time that falls on another day at the Series' own UTC offset. A changed date or changed Selections apply to this event only. This and following events starts the new Series on the day of the Occurrence's key. Saving no change asks nothing, and a changed Occurrence not yet rolled saves with no Selections.
  • Nothing else changed. README.md and AGENTS.md do not mention Series, Occurrences or the Repeat section. docs/api-validation.md describes only the API, and its scope rows are still true. ADR 0002 records the scopes as storage and API decisions, not Web dialog behaviour, and those decisions still hold. So none of these files was edited.

Validation

Base origin/dev 5f33117. It had not moved when I committed.

errors warnings Api.Tests Web.Tests E2E (no stack)
Cold baseline 0 0 870 passed + 4 skipped 1170 passed 5 passed + 12 skipped
Cold after 0 0 870 passed + 4 skipped 1170 passed 5 passed + 12 skipped

Every count is the same before and after. Both runs used clean-build.sh, then dotnet build MW-GC.EventManager.slnx --no-incremental, then dotnet test --no-build, summed by run-numbers.py. git diff --check origin/dev is clean. git diff --stat origin/dev shows only GLOSSARY.md (11 lines added, 2 removed; the file is now 191 lines). No flows were run, because the card asks for none (docs only). Each claim is checked against code and tests in the DOC-CHECK comment below.

Notes

Refs #100, #204, #235, #239. Nerd closes the issues by hand once every item has a disposition. Not merged.

The Occurrence entry in GLOSSARY.md said an edit or cancel asks for its
scope "this occurrence, this and following, or all". That is wrong for
cancel, which offers two scopes, and imprecise for edit, which offers three
only when the change can reach the Series.

The entry now names the options as the Web shows them: deleting an
Occurrence asks This event only or This and all future events; saving a
change asks This event only, This and following events or All future
events, the last two only when nothing but the name, the time of day or
Unique games only changed. It also says that a time landing on another day
at the Series' own UTC offset is refused for a series scope, that This and
following events starts on the day of the Occurrence's key, that saving no
change asks nothing, and that a changed, not yet rolled Occurrence saves
with no Selections.

No other doc states the Web scope questions or the Repeat section: README
and AGENTS.md do not mention Series, docs/api-validation.md stays about the
API, and ADR 0002 records the scopes as storage decisions, which still hold.

Refs #100, #204, #235, #239
@mwg-bender

mwg-bender Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

DISPOSITION

Card items:

  • Item 1 DONE: GLOSSARY.md Occurrence entry (lines 153–162) now gives two cancel scopes and three edit scopes, using the UI's option names.
  • Item 2 DONE (no other change needed): I read every place that mentions a scope, Occurrence or Repeat.
    • README.md and AGENTS.md do not mention Series, Occurrences, scopes or Repeat (search_files for series|recurr|repeat|cancel finds only test-cleanup sentences).
    • docs/api-validation.md lines 82–106 are API-only, and every scope row in them matches the code (SeriesFunctions.cs:126,158, EventFunctions.cs:114,133). I left it alone, as the card says.
    • docs/idempotent-event-creates.md, docs/event-create-retries.md and docs/agents/* have no scope, Occurrence or Repeat content.
  • Item 3 DONE (left alone): ADR 0002 lines 15–21 record the scopes as Series/Occurrence storage decisions. They describe what each scope does to rows ("This Occurrence", "This and following", "All", "Cancel an Occurrence", "Cancel the Series"), not the Web dialog. That behaviour is still true (SeriesFunctions.cs:113–167, SeriesFunctions.Following.cs, EventFunctions.cs:114,133). The ADR does not mention the dialog's labels, when it offers the options, or the Repeat section, so it was not edited.
  • Item 4 OUTSIDE: see Observations.

Issue items:

  • #235.1 OUTSIDE the red Confirm test (code/test card)
  • #235.2 OUTSIDE the Events.razor stale-answer guard (code card)
  • #235.3 DONE GLOSSARY cancel wording fixed (two scopes)
  • #235.4 OUTSIDE live check after release (Woody/Nerd)
  • #239.1 OUTSIDE the EventEditDialog stale-answer guard (code card)
  • #239.2 OUTSIDE the busy guard in SaveCustomizedEvent (code card)
  • #239.3 OUTSIDE the SeriesEdit.OtherDay first line (code card)
  • #239.4 OUTSIDE no UI for a Series' rule, date or end (product call)
  • #239.5 DONE GLOSSARY edit wording: three scopes, series scopes only for name/time/Unique games only, unrolled saves with none, other-day refusal, following starts on the key's day
  • #239.6 OUTSIDE E2E harness order (test(e2e): make Event flows independent of seeded test state #238)
  • #239.7 OUTSIDE live check after release (Woody/Nerd)

DOC-CHECK

Claims written into GLOSSARY.md:

DOC-CHECK GLOSSARY.md:153 deleting an Occurrence asks This event only / This and all future events  MW-GC.EventManager.Web/Shared/ScopeRequest.cs:27-39 (labels :32,:35; title "Delete repeating event" :28); Pages/Events.razor:131-136; test OccurrenceDeleteScopeTests.cs:84,102, ScopeDialogTests.cs:155
DOC-CHECK GLOSSARY.md:153 This event only "stays cancelled"  ScopeRequest.cs:33; API EventFunctions.cs:133 (RecordSkippedAsync before delete); Web Events.razor:134,175-177 (EventSvc.DeleteAsync)
DOC-CHECK GLOSSARY.md:154 This and all future events cancels the Series with its future, unplayed Occurrences  Events.razor:135,183-185 -> SeriesService.cs:27 (DELETE ?scope=all) -> API SeriesFunctions.cs:159-165 (row deleted, then Date>now && !played deleted)
DOC-CHECK GLOSSARY.md:155-156 saving a change asks This event only / This and following events / All future events  Shared/Events/SeriesEdit.cs:66-78; test OccurrenceEditScopeTests.cs:34
DOC-CHECK GLOSSARY.md:156-157 series scopes offered only when nothing but name, time of day or Unique games only changed  SeriesEdit.cs:18 (SeriesWide => Any && !Day && !Slots), :69; tests SeriesEditTests.cs:40-51, OccurrenceEditScopeTests.cs:154,169
DOC-CHECK GLOSSARY.md:157-159 a time on another day at the Series' own UTC offset is refused for a series scope; This event only takes it  SeriesEdit.cs:34,86-91; EventEditDialog.razor.cs:44 (This event only = EventSvc.UpdateAsync, no OtherDay check) vs :79 (series scopes check OtherDay first); tests SeriesEditTests.cs:188, OccurrenceEditGuardTests.cs:193
DOC-CHECK GLOSSARY.md:159 a changed date or changed Selections apply to this event only  SeriesEdit.cs:31 (EventOnlyReason),:69 (one option); tests OccurrenceEditScopeTests.cs:184-206 (date, removed slot, replaced activity, name and date)
DOC-CHECK GLOSSARY.md:159-160 This and following events starts the new Series on the day of the Occurrence's key  SeriesEdit.cs:107 (OccurrenceKey ?? Date, at Series offset), :115; tests SeriesEditTests.cs:151,166
DOC-CHECK GLOSSARY.md:161 saving no change asks nothing  EventEditDialog.razor.cs:40 (if (!change.Any) return false); test OccurrenceEditScopeTests.cs:209
DOC-CHECK GLOSSARY.md:161-162 a changed Occurrence not yet rolled saves with no Selections  EventEditDialog.razor.cs:29-30 (Unrolled), EventEditDialog.razor:282,311; API accepts: Shared/Entities/EventEntity.cs:44; test OccurrenceEditScopeTests.cs:226 (Assert.IsEmpty(SentEvent(empty).Selections))

Card claims I checked but did not write into a doc (not needed: the glossary does not describe the edit dialog's reads, and the Repeat section is not in any doc):

DOC-CHECK (not written) cancel Confirm is red/destructive; standalone Event keeps plain Delete confirm  ScopeRequest.cs:39 destructive:true, ScopeDialog.razor:32-33 (var(--error)); Events.razor:138 ConfirmRequest.Delete; test OccurrenceDeleteScopeTests.cs:52
DOC-CHECK (not written) edit dialog reads the Series and its ETag when it opens; a Series saved since is the API's 409, never an overwrite  EventEditDialog.razor:181 -> EventEditDialog.razor.cs:21; :73-81 sends If-Match (SeriesService.cs:71); API SeriesFunctions.cs:117; test OccurrenceEditGuardTests.cs:123
DOC-CHECK (not written) a failed read is not retried at Confirm  EventEditDialog.razor.cs:70-76 (ReadAgainMessage); tests OccurrenceEditGuardTests.cs:82,100
DOC-CHECK (not written) the Repeat section is in the create dialog only; no UI changes an existing Series' rule, date or end  EventEditDialog.razor:33-38 (_editingEvent is null); SeriesEdit.cs:115 (Schedule `with { First }` only: rule and end go back as read); test RepeatSectionDialogTests.cs:260

Links and paths: the diff adds no links or file paths. GLOSSARY.md is 191 lines, under 400.

Observations (for Nerd to file or decide)

@github-actions

Copy link
Copy Markdown

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
2044 2040 0 0 4 0 48.9s

🎉 No failed tests in this run.

Github Test Reporter by CTRF 💚

@mwg-bender
mwg-bender Bot merged commit 00d84f0 into dev Nov 26, 2026
7 checks passed
mwg-bender Bot added a commit that referenced this pull request Nov 26, 2026
…254)

## Summary

Brings the glossary, the README, the API validation doc and ADRs 0001 and 0002 in line with what `dev` does after 0.6.0. Documents only: no code, tests, workflows or `.github/` files change.

## Change

- **`GLOSSARY.md`**
  - Series, Occurrences, zero-Selection Occurrences and the slot template have shipped, so the "Planned for 0.6.0 (#204)" wording is gone.
  - Comment's _Avoid_ line no longer names `ActivityNoteConversion` or its marker, which were removed in #247.
  - Occurrence now describes the edit scope question as it works after #250 (#237):
    - Update Event with nothing changed asks nothing and sends nothing.
    - A Modified, won or past Occurrence shows "Series changes skip played, modified and past events." and saves as This event only, with no question.
    - The first Occurrence of a Series is offered This event only and All future events. Later Occurrences are also offered This and following events.
  - The wording from #236 and #240 that is still true is kept.
- **`README.md`**: the Azurite section names the one remaining Azurite class, `StorageQueryAzuriteTests` (2 tests). It no longer mentions `EM_API_URL`, the conversion test, or the warning that the conversion rewrites the whole store. It also says that the tests skip when the connection string would reach a non-loopback host.
- **`docs/api-validation.md`**: the conversion paragraph now says the conversion was removed in #247 and what stays in storage (the marker row, and the old `Comments` column on rows the API has not rewritten). The Comment-response sentence names that marker the same way.
- **ADR 0001**: a dated amendment records that the conversion was removed. The original decision text stays as written.
- **ADR 0002**: Cancel the Series deletes the Series row and keeps past Occurrences as well as played ones, as the `DELETE /api/series/{id}?scope=all` route does.

## Validation

Base `origin/dev` `9890a1dca978795988f44692d261188ae552732d`. It had not moved when I pushed. Both runs below are cold (`clean-build.sh`, then `build --no-incremental`, then `test --no-build`) and were run by the worker.

| | errors | warnings | Api.Tests | Web.Tests | E2E (no stack) |
|---|---|---|---|---|---|
| base `9890a1d` | 0 | 0 | 901 passed + 2 skipped (903) | 1245 | 5 passed + 13 skipped (18) |
| head `b5bcb79` | 0 | 0 | 901 passed + 2 skipped (903) | 1245 | 5 passed + 13 skipped (18) |

- Each relative link and each backticked test-class name in `README.md`, `GLOSSARY.md`, `AGENTS.md` and `docs/**` was checked against the tree by a script. Every link resolves. The only class names that do not exist are three uses of `CommentApiTests` and one of `RetiredCommentsFieldTests` in `docs/api-validation.md`. Those lines predate this PR and are listed under Observations.
- Every behaviour sentence this PR adds or changes has a `DOC-CHECK` line in the PR comment, citing the file and line that proves it.
- No live flow was run, because the card asks for none for a documents-only change. **UI flows: NOT RUN by the worker.**
- File sizes: `GLOSSARY.md` 196 lines, `README.md` 180, `docs/api-validation.md` 161. All are under 400.

## Notes

`Refs #100, #204, #237, #238`. The issues are left open for Nerd to close by hand.
@MWG-Logan
MWG-Logan deleted the docs/060-scope-wording branch November 27, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants